<?php
namespace catchAdmin\stock\model\search;

trait SliceSearch
{
    public function searchBoxIdAttr($query, $value, $data)
    {
        return $query->whereLike('box_id', $value);
    }
     public function searchTrayIdAttr($query, $value, $data)
    {
        return $query->whereLike('tray_id', $value);
    }
    public function searchSliceIdAttr($query, $value, $data)
    {
        return $query->whereLike('slice_id', $value);
    }

}